package com.zker.missyou.service;/*
 * ClassName: BannerServiceImpl
 * Package : com.zker.missyou.sample.service
 * Description:
 * @Author zKer
 * @Create 2024/7/8 11:33
 */

import com.zker.missyou.model.Banner;
import com.zker.missyou.repository.BannerRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BannerServiceImpl implements BannerService{

    @Autowired
    private BannerRepository bannerRepository;
    @Override
    public Banner getByName(String name) {
        return  (Banner) bannerRepository.findOneByName(name);
    }
}
